﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopWaitingTimeById : BaseObject
    {
        //begin
        public TopWaitingTimeById(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _ServiceStaffId;
        [Size(SizeAttribute.Unlimited)]
        public string ServiceStaffId
        {
            get
            {
                return _ServiceStaffId;
            }
            set
            {
                SetPropertyValue("ServiceStaffId", ref _ServiceStaffId, value);
            }
        }
        private long _AvgWaitingTimes;
        public long AvgWaitingTimes
        {
            get
            {
                return _AvgWaitingTimes;
            }
            set
            {
                SetPropertyValue("AvgWaitingTimes", ref _AvgWaitingTimes, value);
            }
        }
        private TopWaitingTimesOnDay _WaitingTimesOnDay;
        [Association("WaitingTimesOnDayWaitingTimeByIds", typeof(TopWaitingTimesOnDay))]
        public TopWaitingTimesOnDay WaitingTimesOnDay
        {
            get
            {
                return _WaitingTimesOnDay;
            }
            set
            {
                SetPropertyValue("WaitingTimesOnDay", ref _WaitingTimesOnDay, value);
            }
        }
        //end

    }
}
